/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pckVista.Contenedores;

/**
 *
 * @author Hider Sánchez - Departamento de Sistemas : SINTEC-PERÚ
 *
 * : sintecperu@gmail.com : informes@sintecperu.tk
 *
 * : http://www.sintecperu.tk : http://www.sintecperu.com
 */
public class pnlConfiguracion extends javax.swing.JPanel {
    private frmPrincipal oPrincipal;
    /**
     * Creates new form pnlOperaciones
     */
    public pnlConfiguracion( frmPrincipal f) {
        oPrincipal=f;
        initComponents();
        setBackground(new java.awt.Color(190,206,205));
         this.setVisible(false);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btnAdminUsuarios = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();

        setAutoscrolls(true);

        btnAdminUsuarios.setText("Adm Usuarios");
        btnAdminUsuarios.setFocusable(false);
        btnAdminUsuarios.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnAdminUsuarios.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnAdminUsuarios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAdminUsuariosActionPerformed(evt);
            }
        });

        jLabel2.setFont(new java.awt.Font("sansserif", 1, 18)); // NOI18N
        jLabel2.setText("Menu de Configuración");
        jLabel2.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(18, Short.MAX_VALUE)
                .addComponent(jLabel2)
                .addContainerGap(17, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(51, Short.MAX_VALUE)
                .addComponent(btnAdminUsuarios, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(51, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnAdminUsuarios, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(42, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void btnAdminUsuariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAdminUsuariosActionPerformed
      //estado de los paneles en el formulario referente al pckContenedor
      oPrincipal.oReporte.setVisible(false);
      oPrincipal.oUtilitario.setVisible(false);
      oPrincipal.oVenta.setVisible(false);
      oPrincipal.opnlAcerca.setVisible(false);
      //estado del panel en el formulario referente a pckConfiguracion
      oPrincipal.oConfigRoles.setVisible(false);
      oPrincipal.oConfigUsuario.setVisible(true);
      oPrincipal.oConfiguracion.setVisible(false);
      
      //estado del panel en el formulario referente a pckConsulta
  
      oPrincipal.oConsulta.setVisible(false);
      
      //estado del panel en el formulario referente a pckProcesos
   
      oPrincipal.oProcCliente.setVisible(false);
      oPrincipal.oProcMovimiento.setVisible(false);
      oPrincipal.oProcProducto.setVisible(false);
      oPrincipal.oProcProveedor.setVisible(false);
      oPrincipal.oProceso.setVisible(false);
    }//GEN-LAST:event_btnAdminUsuariosActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAdminUsuarios;
    private javax.swing.JLabel jLabel2;
    // End of variables declaration//GEN-END:variables
}
